package com.ruoyi.passengers.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.passengers.mapper.BlackListMapper;
import com.ruoyi.passengers.domain.BlackList;
import com.ruoyi.passengers.service.IBlackListService;

/**
 * 黑名单Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-27
 */
@Service
public class BlackListServiceImpl implements IBlackListService 
{
    @Autowired
    private BlackListMapper blackListMapper;

    /**
     * 查询黑名单
     * 
     * @param blackId 黑名单主键
     * @return 黑名单
     */
    @Override
    public BlackList selectBlackListByBlackId(Long blackId)
    {
        return blackListMapper.selectBlackListByBlackId(blackId);
    }

    /**
     * 查询黑名单列表
     * 
     * @param blackList 黑名单
     * @return 黑名单
     */
    @Override
    public List<BlackList> selectBlackListList(BlackList blackList)
    {
        return blackListMapper.selectBlackListList(blackList);
    }

    /**
     * 新增黑名单
     * 
     * @param blackList 黑名单
     * @return 结果
     */
    @Override
    public int insertBlackList(BlackList blackList)
    {
        return blackListMapper.insertBlackList(blackList);
    }

    /**
     * 修改黑名单
     * 
     * @param blackList 黑名单
     * @return 结果
     */
    @Override
    public int updateBlackList(BlackList blackList)
    {
        return blackListMapper.updateBlackList(blackList);
    }

    /**
     * 批量删除黑名单
     * 
     * @param blackIds 需要删除的黑名单主键
     * @return 结果
     */
    @Override
    public int deleteBlackListByBlackIds(Long[] blackIds)
    {
        return blackListMapper.deleteBlackListByBlackIds(blackIds);
    }

    /**
     * 删除黑名单信息
     * 
     * @param blackId 黑名单主键
     * @return 结果
     */
    @Override
    public int deleteBlackListByBlackId(Long blackId)
    {
        return blackListMapper.deleteBlackListByBlackId(blackId);
    }
}
